<?xml version="1.0" encoding="gb2312"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:template match="/fields">
    <table id="Fields" cellpadding="0" cellspacing="0" width="100%" style="table-layout: fixed;">
      <col width="34" />
      <col />
      <col width="178" />
      <col width="66" />
      <xsl:for-each select="field">
        <xsl:sort select="@displayname" />
        <xsl:if test="not(starts-with(@datatype, 'bad-news-here'))">
          <tr height="20" style="cursor: hand;" onmouseover="on();" onmouseout="off();" onclick="this.cells[0].children[0].click();">
            <xsl:attribute name="required">
              <xsl:value-of select="@required" />
            </xsl:attribute>
            <xsl:attribute name="orgrequired">
              <xsl:value-of select="@orgrequired" />
            </xsl:attribute>
            <td style="padding-left: 5px;">
              <input type="checkbox" class="checkbox" />
            </td>
            <td nowrap="">
              <xsl:value-of select="@displayname" />
            </td>
            <td nowrap="">
              <xsl:value-of select="@name" />
            </td>
            <td nowrap="">
              <xsl:value-of select="@datatype" />
            </td>
          </tr>
        </xsl:if>
      </xsl:for-each>
    </table>
  </xsl:template>
</xsl:stylesheet>